package com.example.park2212.payer

import android.widget.CheckBox
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.lib_base.entity.PayerBeanItem
import com.example.park2212.R

class PayerDetailAdapter:BaseQuickAdapter<PayerBeanItem,BaseViewHolder>(R.layout.item_payer_detail) {
    override fun convert(helper: BaseViewHolder, item: PayerBeanItem) {
        helper.getView<CheckBox>(R.id.detail_cb).isChecked = item.isChecked
        helper.setText(R.id.detail_time,item.paymentTime)
        helper.setText(R.id.detail_hjprice,"￥ ${item.totalAmount}")
        helper.setText(R.id.detail_price,"￥ ${item.totalAmount}")
        helper.setText(R.id.detail_name,item.projectName)
    }
}